﻿Public Class ManageWorkshops
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    End Sub
    Protected Sub createWorkshopButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles createWorkshopButton.Click
        ''go to a page to enter data to make a new workshop
        Response.Redirect("CreateWorkshopA.aspx")
    End Sub
    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.SelectedIndexChanged
        'view a workshop by passign in the selected workshop'd ID as a primary key via queryString
        Response.Redirect("ViewWorkshopA.aspx?id=" + GridView1.SelectedRow.Cells(1).Text)
    End Sub
    

    Protected Sub adminHomeButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles adminHomeButton.Click
        'return to admin home
        Response.Redirect("/User_View/AdminView/AdminHome.aspx")
    End Sub
End Class